package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.entity.SysClinictime;
import com.jinghua.treatment.mapper.SysClinictimeMapper;
import com.jinghua.treatment.service.SysClinictimeService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 王兴光 on 2018/4/21.
 */
@Service("clinictimeService")
public class SysClinictimeServiceImpl implements SysClinictimeService {
    @Resource
    private SysClinictimeMapper clinictimeMapper;

    @Override
    public int deleteByPrimaryKey(Integer timeId) {
        return 0;
    }

    @Override
    public int insert(SysClinictime record) {
        return 0;
    }

    @Override
    public SysClinictime selectByPrimaryKey(Integer timeId) {
        return null;
    }

    @Override
    public List<SysClinictime> selectByClinicId(Integer clinicId) {
        return clinictimeMapper.selectByClinicId(clinicId);
    }

    @Override
    @Transactional
    public int updateByPrimaryKey(SysClinictime record) {
        return clinictimeMapper.updateByPrimaryKey(record);
    }
}
